<div class="form">
  <form  action="scraper"  method="get" >
    <p>
      <label for="brand_id">品牌</label>
      <%=  select_tag("brand_id",
        options_for_select(Brand.find(:all,:order => 'sort_order').collect {|b| [ b.name, b.id ]}),
        {:include_blank => true }) %>
    </p>

    <p>
      <label for="category_id">类别</label>
      <select id="category_id" name="category_id">
        <%=  options_for_select categories_options %>
      </select>
    </p>

    <p>
      <label for="site_url">URL</label>
      <input id="site_url" name="site[url]"  size="40" ></input>
    </p>

    <p>
      <label for="site_encoding">编码</label>
      <select id="site_encoding" name="site[encoding]">
        <option value="GB2312">GB2312</option>
        <option value="UTF-8">UTF-8</option>
      </select>
    </p>

    <!--p>
      <label for="site_cname">类别名称</label>
      <input id="site_cname" name="site[cname]" size="80"></input>
    </p-->

    <!--p>
      <label for="site_cname_filter">过滤正则</label>
      <input id="site_cname_filter" name="site[cname_filter]" size=20"></input>
    </p-->

    <p>
      <label for="site_name">商品名称</label>
      <input id="site_name" name="site[name]" size="50" value=".div_content19"></input>
    </p>

    <p>
      <label for="site_name_filter">名称过滤正则</label>
      <input id="site_name_filter" name="site[name_filter]" size="20" value="\d.*$"></input>
    </p>

    <p>
      <label for="site_size">商品大小</label>
      <input id="site_size" name="site[size]" size="50" value=".div_content19"></input>
    </p>

    <p>
      <label for="site_size_filter">过滤正则</label>
      <input id="site_size_filter" name="site[size_filter]" size="20" value="/.*|[^\d]"></input>
    </p>

    <p>
      <label for="site_unit">单位</label>
      <input id="site_unit" name="site[unit]" size="50" value=".div_content19"></input>
    </p>

    <p>
      <label for="site_unit_filter">过滤正则</label>
      <input id="site_unit_filter" name="site[unit_filter]" size="20" value="[^m,l,g]"></input>
    </p>

    <p>
      <label for="site_official_price">市场价</label>
      <input id="site_official_price" name="site[official_price]" size="50" value=".div_content22"></input>
    </p>

    <p>
      <label for="site_official_price_filter">过滤正则</label>
      <input id="site_official_price_filter" name="site[official_price_filter]" size="20"></input>
    </p>

    <p>
      <label for="site_cost_price">成本价</label>
      <input id="site_cost_price" name="site[cost_price]" size="50" value=".div_content33"></input>
    </p>
    <p>
      <label for="site_cost_price_filter">过滤正则</label>
      <input id="site_cost_price_filter" name="site[cost_price_filter]" size="20" ></input>
    </p>
    
    <p>
      <label for="site_times">零售价系数</label>
      <input id="site_times" name="site[times]" size="20" value="1.2" ></input>
    </p>




    <p>
      <label for="site_image">图片</label>
      <input id="site_image" name="site[image]" size="50" value=".div_width395/img"></input>
    </p>

    <p>
      <label for="site_desc1">描述1</label>
      <input id="site_desc1" name="site[desc1]" size="50" value=".div_content14_2 ul"></input>
    </p>

    <p>
      <label for="site_desc_filter">过滤正则1</label>
      <input id="site_desc_filter" name="site[desc_filter]" size="20"></input>
      替换内容
      <input id="site_desc_replace" name="site[desc_replace]" size="20"></input>
    </p>

    <p>
      <label for="site_desc_filter1">过滤正则2</label>
      <input id="site_desc_filter1" name="site[desc_filter1]" size="20"></input>
      替换内容
      <input id="site_desc_replace1" name="site[desc_replace1]" size="20"></input>
    </p>

    <input id="submit" name="submit" type="submit" value="Good luck" />

  </form>
</div>